package com.yingsheng.bi.hks.mapping;

import com.yingsheng.bi.hks.bo.AddrBo;
import com.yingsheng.bi.hks.dto.addr.AddrAddReq;
import com.yingsheng.bi.hks.dto.addr.AddrModReq;
import com.yingsheng.bi.hks.repository.dao.po.Address;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AddrMgmtMappings {

    AddrMgmtMappings INSTANCE = Mappers.getMapper(AddrMgmtMappings.class);

    Address addReq2po(AddrAddReq req);

    Address addReq2po(AddrModReq req);

    List<AddrBo> addrList2boList(List<Address> addresses);
}
